package com.springstudy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class thymeleafController {

    @RequestMapping("/thymeleafPath")
    public String thymeleafPath(){
        //通过Thymeleaf引擎找到/templates目录的文件
        //对应/classpath:/templates/thymeleafPath.html文件
        return "thymeleafPath";
    }
}
